<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/MCS/Dashboard/Device/ColdAndHeatSource.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/MCS/Dashboard/Device</a> ColdAndHeatSource.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/29</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/12</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/10</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/29</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container&gt;
    &lt;div class="topContent"&gt;冷热源系统&lt;/div&gt;
    &lt;div class="effectone" style="padding-bottom: 70px; margin: 0 10px;"&gt;
      &lt;div class="effectcontent clearfix" style="height: 27px;"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="frozen" style="display: flex;"&gt;
        &lt;p @click="toggle(1)" :class="{active:index === 1}" style="border-radius: 5px 0 0 5px;"&gt;制热&lt;/p&gt;
        &lt;p @click="toggle(2)" :class="{active:index === 2}" style="border-radius: 0 05px 5px 0;"&gt;制冷&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="effectNum" v-show="index === 1"&gt;
        &lt;div class="effectNum_left"&gt;
          &lt;div class="effectNum_top" style="padding-bottom: 20px;"&gt;
            &lt;div class="one_left"&gt;&lt;i style=""&gt;&lt;/i&gt;COP(能效比)&lt;/div&gt;
            &lt;div class="effectNum_left_title"&gt;3.33&lt;/div&gt;
            &lt;s class="red" style="width: 3px; height: 15px;background: red; display: block;position: absolute;left: 14%;top: 87px;z-index: 99;"&gt;&lt;/s&gt;
            &lt;s class="red" style="width: 3px; height: 15px;background: #008FFF; display: block;position: absolute;left: 15%;top: 87px;z-index: 99;"&gt;&lt;/s&gt;
            &lt;el-progress style="width: 20%;" :percentage="percentage" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
            &lt;div class="one_right"&gt;能效比参考指标:3.2—3.4&lt;/div&gt;
          &lt;/div&gt;
          &lt;div style="float: right; margin-right:50px; position: relative;top:-160px;"&gt;
            &lt;div class="one_left"&gt;&lt;i&gt;&lt;/i&gt;组合报警规则&lt;/div&gt;
            &lt;div class="four_main_content_two" style="width: 50%;margin: 5px auto;"&gt;
              &lt;div class="four_main_content_two_img"&gt;
                &lt;img src="../../../../../static/skin/default/MCS/Dashboard/Global/Page/img/deng.png" width="25px" height="25px" alt=""class="image" &gt;
                &lt;p&gt;报警&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="four_main_content_two_font"&gt;1&lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="effectNum_right"&gt;
            &lt;div style="margin-top: 13px;display: flex;width: 90%;" class="hotContent"&gt;
              &lt;div class="coldBox" v-for='(item,index) in hotPumpNum' :key="index" :style="{left: item.XAxis + '%', top:item.YAxis + '%'}"&gt;
                &lt;span class="coldValue" style="font-size:15px;color:#041460;line-height: 30px;"&gt;{{item.Value}}&lt;/span&gt;
                &lt;div class="coldStatus"&gt;
                  &lt;p&gt;名称:{{item.SensorName}}&lt;/p&gt;
                  &lt;p&gt;内容:{{item.Value}}&lt;/p&gt;
                  &lt;p v-if="item.IfOnline===1"&gt;在线状态:在线&lt;/p&gt;
                  &lt;p v-else="item.IfOnline===0"&gt;在线状态:离线&lt;/p&gt;
                  &lt;p&gt;更新时间:{{item.LastUploadTime}}&lt;/p&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;img :src="'../../../../../static/skin/default/MCS/Dashboard/Device/ColdAndHeatSource/img/hot_'+ buildIndex +'.png'" alt="" width="100%" style="z-index: -36;position: relative; left: 3%;height: 350px;"&gt;
            &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="effectNum" v-show="index === 2"&gt;
        &lt;div class="effectNum_left"&gt;
          &lt;div class="effectNum_top" style="padding-bottom: 20px;"&gt;
            &lt;div class="one_left"&gt;&lt;i style=""&gt;&lt;/i&gt;EER(能效比)&lt;/div&gt;
            &lt;div class="effectNum_left_title"&gt;0&lt;/div&gt;
            &lt;s class="red" style="width: 3px; height: 15px;background: red; display: block;position: absolute;left: 14%;top: 87px;z-index: 99;"&gt;&lt;/s&gt;
            &lt;s class="red" style="width: 3px; height: 15px;background: #008FFF; display: block;position: absolute;left: 15%;top: 87px;z-index: 99;"&gt;&lt;/s&gt;
            &lt;el-progress style="width: 20%;" :percentage="percentage" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
            &lt;div class="one_right"&gt;能效比参考指标:3.2—3.4&lt;/div&gt;
          &lt;/div&gt;
          &lt;div style="float: right; margin-right:50px; position: relative;top:-160px;"&gt;
            &lt;div class="one_left"&gt;&lt;i&gt;&lt;/i&gt;组合报警规则&lt;/div&gt;
            &lt;div class="four_main_content_two" style="width: 50%;margin: 5px auto;"&gt;
              &lt;div class="four_main_content_two_img"&gt;
                &lt;img src="../../../../../static/skin/default/MCS/Dashboard/Global/Page/img/deng.png" width="25px" height="25px" alt=""class="image" &gt;
                &lt;p&gt;报警&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="four_main_content_two_font"&gt;0&lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="effectNum_right"&gt;
          &lt;div style="margin-top: 13px;display: flex;width: 90%;" class="hotContent"&gt;
            &lt;div class="coldBox" v-for='(item,index) in coldNum' :key="index" :style="{left: item.XAxis + '%', top:item.YAxis + '%'}" &gt;
              &lt;span class="coldValue" style="font-size:15px;color:#041460;line-height: 30px;"&gt;{{item.Value}}&lt;/span&gt;
              &lt;div class="coldStatus"&gt;
                &lt;p&gt;名称:{{item.SensorName}}&lt;/p&gt;
                &lt;p&gt;内容:{{item.Value}}&lt;/p&gt;
                &lt;p v-if="item.IfOnline===1"&gt;在线状态:在线&lt;/p&gt;
                &lt;p v-else="item.IfOnline===0"&gt;在线状态:离线&lt;/p&gt;
                &lt;p&gt;更新时间:{{item.LastUploadTime}}&lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;img :src="'../../../../../static/skin/default/MCS/Dashboard/Device/ColdAndHeatSource/img/cold_'+ buildIndex +'.png'"width="100%" style="z-index: -36;position: relative; left: 3%;height: 350px;"&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&nbsp;
    &lt;div class="center_bottom"&gt;
      &lt;div class="Building" v-for="(item,index) in buildData" :key="index"  :style="{'background': (BuildIndex==index ? '#008FFF':'#01033C')}" @click="building(item.ID,index)"&gt;
        &lt;div class="icon icon-louceng2" style="font-size: 40px;color:#00FFFF;margin-left: 45%;"&gt;&lt;/div&gt;
        &lt;div class="BuildingFont"&gt;{{item.Name}}&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
  export default {
    name: "mcs_dashboard_ColdAndHeatSource_page", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >      return {</span>
          octopus: this.$parent.octopus,
          buildData:null,
          buildIndex:null,
          coldNum:null,
          IfOnline:null,
          hotPumpNum:null,
          index:1,
          BuildIndex:0,
          percentage: 40,
          customColors: '#00FFFF',
      }
    },
<span class="fstat-no" title="function not covered" >    created(){</span>
        //楼的数据源
<span class="cstat-no" title="statement not covered" >        this.buildNum()</span>
        // this.hotNum()
        // this.switchBuild()
    },
    methods: {
        //选项卡切换
<span class="fstat-no" title="function not covered" >        toggle(id){</span>
<span class="cstat-no" title="statement not covered" >            this.index = id;</span>
        },
        //楼宇点击变色
<span class="fstat-no" title="function not covered" >        building(buildid,id){</span>
            //重新赋值buildid
<span class="cstat-no" title="statement not covered" >            this.buildIndex=buildid;</span>
<span class="cstat-no" title="statement not covered" >            this.BuildIndex = id;</span>
<span class="cstat-no" title="statement not covered" >            this.switchBuild()</span>
<span class="cstat-no" title="statement not covered" >            this.hotNum()</span>
        },
        //楼的数据源
<span class="fstat-no" title="function not covered" >        buildNum(){</span>
<span class="cstat-no" title="statement not covered" >            let that = this;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >            this.octopus.request.api.post("/Octopus/Engine/List", {</span></span>
                    id:2,
                    value: this.octopus.passport.project,
                    cellData: [
                        {name: "ID"},
                        {name: "ProjectID",filterKey:"=",filterValue:this.octopus.passport.project},
                        {name:"Name"}
                    ],
                },
                function(data){
<span class="cstat-no" title="statement not covered" >                    if(data.status.code ==200){</span>
<span class="cstat-no" title="statement not covered" >                        that.buildData=(data.content.queryData);</span>
<span class="cstat-no" title="statement not covered" >                        if(data.content.queryData.length &gt; 0){</span>
<span class="cstat-no" title="statement not covered" >                            that.buildIndex = data.content.queryData[0].ID;</span>
                        }
<span class="cstat-no" title="statement not covered" >                        that.switchBuild()</span>
<span class="cstat-no" title="statement not covered" >                        that.hotNum()</span>
                    }
                }
            )
        },
        //制冷系统数据源
<span class="fstat-no" title="function not covered" >        switchBuild(){</span>
<span class="cstat-no" title="statement not covered" >            let that = this;</span>
<span class="cstat-no" title="statement not covered" >            let lastHour = new Date(new Date().getTime() - 1 * 60 * 60 * 1000);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >            this.octopus.request.api.post("/Octopus/Engine/List", {</span></span>
                    id:155,
                    value: this.octopus.passport.project,
                    cellData: [
                        {name: "BuildingID",filterKey:"=",filterValue:that.buildIndex},
                        {name: "ProjectID",filterKey:"=",filterValue:this.octopus.passport.project},
                        {name:"IfOnline"},
                        {name:"LastUploadTime"},
                        {name:"SensorName"},
                        {name:"TypeID"},
                        {name:"Value"},
                        {name:"XAxis"},
                        {name:"YAxis"},
                        {name: "Year",filterKey : "=",filterValue : lastHour.getFullYear()},
                        {name: "Month",filterKey : "=",filterValue : lastHour.getMonth()+1},
                        {name: "Day",filterKey : "=",filterValue : lastHour.getDate()},
                        {name: "Hour",filterKey : "=",filterValue : lastHour.getHours()},
                    ],
                },
                function(data){
<span class="cstat-no" title="statement not covered" >                    if(data.status.code ==200){</span>
<span class="cstat-no" title="statement not covered" >                        that.coldNum=data.content.queryData;</span>
<span class="cstat-no" title="statement not covered" >                        if(that.coldNum.length &lt;= 0) {</span>
<span class="cstat-no" title="statement not covered" >                            that.buildIndex='none';</span>
                        }
                    }
                }
            )
        },
        //制热系统
<span class="fstat-no" title="function not covered" >        hotNum(){</span>
<span class="cstat-no" title="statement not covered" >            let that = this;</span>
<span class="cstat-no" title="statement not covered" >            let lastHour = new Date(new Date().getTime() - 1 * 60 * 60 * 1000);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >            this.octopus.request.api.post("/Octopus/Engine/List", {</span></span>
                    id:154,
                    value: this.octopus.passport.project,
                    cellData: [
                        {name: "BuildingID",filterKey:"=",filterValue:that.buildIndex},
                        {name: "ProjectID",filterKey:"=",filterValue:this.octopus.passport.project},
                        {name:"IfOnline"},
                        {name:"LastUploadTime"},
                        {name:"SensorName"},
                        {name:"Value"},
                        {name:"XAxis"},
                        {name:"YAxis"},
                        {name: "Year",filterKey : "=",filterValue : lastHour.getFullYear()},
                        {name: "Month",filterKey : "=",filterValue : lastHour.getMonth()+1},
                        {name: "Day",filterKey : "=",filterValue : lastHour.getDate()},
                        {name: "Hour",filterKey : "=",filterValue : lastHour.getHours()},
                    ],
                },
                function(data){
<span class="cstat-no" title="statement not covered" >                    if(data.status.code ==200){</span>
<span class="cstat-no" title="statement not covered" >                        that.hotPumpNum=data.content.queryData;</span>
<span class="cstat-no" title="statement not covered" >                        if(that.hotPumpNum.length &lt;= 0) {</span>
<span class="cstat-no" title="statement not covered" >                            that.buildIndex='none';</span>
                        }
                    }
                }
            )
        }
    }
  }
&lt;/script&gt;
&nbsp;
&lt;style scoped&gt;
&nbsp;
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
